if not menu then menu = {} end

if not menu.window then


menu.window = {caption = ""}


dofile (getScriptPath() .. "\\..\\processor\\processor.lua")
dofile (getScriptPath() .. "\\..\\processor\\OnTableNotification.lua")
dofile (getScriptPath() .. "\\..\\lib\\window.lua")


processor:AddInit(function()
	window:new()
	window:AddColumn(10)
	window:AddColumn(14)
	window:AddColumn(14)
	
	window:show()
		
	processor:AddTableNotification(window:id())
	
	local t, l, b, r = GetWindowRect(window:id())
	
	SetWindowPos(window:id(), 0, 0, r + 1 - l, int((b + 1 - t) * 0.65))
end)


processor:AddTimer(function(t)
	if window:IsClosed() then
		processor:stop(0)              
	end
end)
	
	
processor:AddTimer(function(t)
	local caption = " "
	
	if menu.window.caption then
		local d = os.sysdate()
		caption = string.format("%02d %s", d.sec, menu.window.caption)
	end
	
	window:SetCaption(caption)
end)


end -- of file
